package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Employee;

/**
 * @version 1.0
 * @Author 杨旭康
 * @Date 2022/10/30 11:44
 * @question:
 */

public interface EmployeeService extends IService<Employee> {

    //用户登录
    Employee login(Employee employee);

    //添加员工
    void saveEmp(Employee employee);

    //分页条件查询
    Page<Employee> getByPage(int page,int pageSize,String name);

    //修改员工信息
    void updateByID(Employee employee);

    //根据id查询--回显数据
    Employee getById2(Long id);

}
